
       $(function datePicker() {
    	//设置开始日期不能大于结束日期
    	   $( "#StartTime" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 1,
			onClose: function( selectedDate ) {
				$( "#EndTime" ).datepicker( "option", "minDate", selectedDate );
			}
		});
		$( "#EndTime" ).datepicker({
			defaultDate: "+1w",
			changeMonth: true,
			numberOfMonths: 1,
			onClose: function( selectedDate ) {
				$( "#StartTime" ).datepicker( "option", "maxDate", selectedDate );
			}
		});
		
		//设置日期格式
        $("#StartTime").datepicker("option",{dateFormat:"yy-mm-dd"} );
        $("#EndTime").datepicker("option",{dateFormat:"yy-mm-dd"} );
	});
       
        //图形与报表按钮
		$("#btnReportForm").button();
		$("#btnGraphForm").button();
        
        //查询与导出按钮
        $("#btnQuery").button();
        $("#btnExport").button();
        
        $("#btnExport").click(function(){
        	var element = {};
        	element.innerHTML="导出";
        	path = contextPath+"/page/log/Export.jsp";
        	addTab(element,path);
        });
        
        
        